package com.api.core.service.impl;

import com.api.core.domain.query.MonitoredGroupQuery;
import com.api.core.domain.vo.MonitoredGroupVo;
import com.api.core.mapper.MonitoredGroupMapper;
import com.api.core.service.IMonitoredGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MonitoredGroupServiceImpl implements IMonitoredGroupService {
    @Autowired
    MonitoredGroupMapper monitoredGroupMapper;
    @Override
    public List<MonitoredGroupQuery> list(MonitoredGroupVo vo) {
        return monitoredGroupMapper.list(vo);
    }

    @Override
    public MonitoredGroupQuery item(MonitoredGroupVo vo) {
        return monitoredGroupMapper.item(vo);
    }

    @Override
    public MonitoredGroupQuery create(MonitoredGroupVo vo) {
        monitoredGroupMapper.create(vo);
        return monitoredGroupMapper.item(vo);
    }

    @Override
    public MonitoredGroupQuery modify(MonitoredGroupVo vo) {
        monitoredGroupMapper.modify(vo);
        return monitoredGroupMapper.item(vo);
    }

    @Override
    public void delete(MonitoredGroupVo vo) {
        monitoredGroupMapper.delete(vo);
    }
}
